package lab02.test23;

import java.util.Calendar;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Calendar time=Calendar.getInstance();
        Scanner scan=new Scanner(System.in);
        int year,month,day;
        System.out.println("出生年：");
        year=scan.nextInt();
        System.out.println("出生月");
        month=scan.nextInt();
        System.out.println("出生日");
        day=scan.nextInt();
        time.set(year,month-1,day);
        int Day=time.get(Calendar.DAY_OF_WEEK);
        System.out.println("星期"+(Day-1));
    }
}
